package cn.wenhe9.yygh.hosp.service;

import cn.wenhe9.yygh.common.result.ResultResponse;
import cn.wenhe9.yygh.model.hosp.Department;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.Map;

/**
 * @author DuJinliang
 * 2022/3/27
 */
public interface DepartmentService {
    /**
     * 保存科室信息
     * @param paramMap Map<String, Object>
     * @return ResultResponse
     */
    ResultResponse save(Map<String, Object> paramMap) throws JsonProcessingException;

    /**
     * 分页查询
     * @param hoscode String
     * @param page int
     * @param limit int
     * @return ResultResponse
     */
    ResultResponse findDepartmentByPage(String hoscode, int page, int limit);

    /**
     *逻辑删除
     * @param hoscode String
     * @param depcode String
     * @return ResultResponse
     */
    ResultResponse logicDelete(String hoscode, String depcode);

    /**
     * 树形获取科室
     * @param hoscode String
     * @return ResultResponse
     */
    ResultResponse findDeptTree(String hoscode);

    /**
     * 根据医院编号和科室编号获取科室名称
     * @param hoscode String
     * @param depcode String
     * @return String
     */
    String getDepname(String hoscode, String depcode);

    /**
     * 获取科室信息
     * @param hoscode String
     * @param depcode String
     * @return Department
     */
    Department getDepartment(String hoscode, String depcode);
}
